package cn.wuyu.baselibrary.rxbus;

import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;

//import org.reactivestreams.Subscriber;

/**
 * author : xuzongmeng
 * date   : 2018/8/19
 * desc   :
 */

public  class RxBusObserver<T> implements Observer<T> {
    @Override
    public void onError(Throwable e) {
        onFailed(e);
    }

    @Override
    public void onComplete() {
    }


    @Override
    public void onSubscribe(Disposable d) {
    }
    @Override
    public void onNext(T t) {
        onSuccess(t);

    }


     public void   onSuccess(T t){

     }
     public void  onFailed(Throwable e){

     }
}

